package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.ExaminationSingleScoreDao;
import com.jinzhi.jzweb.domain.ExaminationSingleScoreDO;
import com.jinzhi.jzweb.pojo.ExaminationSingleScoreVo;
import com.jinzhi.jzweb.service.ExaminationSingleScoreService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 * <pre>
 * 技能考试单题分数详情信息表
 * </pre>
 * <small> 2020-06-05 09:41:09 | lance</small>
 */
@Service
public class ExaminationSingleScoreServiceImpl extends CoreServiceImpl<ExaminationSingleScoreDao, ExaminationSingleScoreDO> implements ExaminationSingleScoreService {

    @Override
    public Double selStuScore(Map map){
        return this.baseMapper.selStuScore(map);
    }

    @Override
    public Page<ExaminationSingleScoreVo> selExaminSumScore(int current, int number, Map map){
        // 新建分页
        Page<ExaminationSingleScoreVo> page = new Page<ExaminationSingleScoreVo>(current, number);
        return page.setRecords(this.baseMapper.selExaminSumScore(page,map));
    }

}
